import { mapActions } from 'vuex'

export default {
  name: 'onlineOrOfflinePay',
  data () {
    return {
      isOnline: 1
    }
  },
  methods: {
  	...mapActions([
  		// 选择线上、线下支付
  		"selectPayOnline"
  	]),
		choosePayMethod: function(){
			this.selectPayOnline(this.isOnline);
			this.$router.push("/placeOrder");
		}
	},
	mounted: function(){
  	window.document.title = "选择支付配送方式";
  	this.isOnline = this.$store.state.shouye.isPayOnline;
  }
}